﻿@inherits Blazorise.RatingItem
@if ( Rating.ReadOnly )
{
    <li id="@ElementId" class="@ClassNames" style="@StyleNames">
        <div role="radio" aria-checked="@(IsSelected.ToString().ToLowerInvariant())" aria-posinset="@Value" aria-setsize="5" tabindex="0">
            <Icon Name="@IconName" IconStyle="@IconStyle" Style="width: 1em; height: 1em;" />
        </div>
    </li>
}
else
{
    <li id="@ElementId" class="@ClassNames" style="@StyleNames" @onclick="@HandleClick" @onmouseover="@HandleMouseOver" @onmouseout="@HandleMouseOut">
        <div role="radio" aria-checked="@(IsSelected.ToString().ToLowerInvariant())" aria-posinset="@Value" aria-setsize="5" tabindex="0">
            <Icon Name="@IconName" IconStyle="@IconStyle" Style="width: 1em; height: 1em;" />
        </div>
    </li>
}